import level1 from '../levels/level1/three-scene.js';

const cubeRotation = function () {
    const cubeGroup = level1.getChildByName('cubeGroup');
    cubeGroup.traverse(item => { // 自转 + 连带着组一起旋转
        item.rotation.x += 0.01;
        item.rotation.y += 0.01;
    })
}

export {cubeRotation}


